* --------------------------------------------- Figure 1: Size of the BDC sector

use "$data_path/database_aggregate_ts_synthetic", clear

twoway (bar  bdc_assets_total bdc_assets_total_public filingdateqtr, ytitle("Total Assets, \$ Billions", size(5)) ylabel(, labsize(5))) ///
       (line bdc_count bdc_count_public filingdateqtr, lcolor(navy maroon) yaxis(2) ytitle("# of BDCs", size(5) axis(2)) ylabel(, labsize(5) axis(2))), ///
	   xtitle("") ///
	   ///xlabel(, labsize(5)) ///
	   xlabel(167(16)231, labsize(5)) ///
	   graphregion(color(white)) ///
	   xscale(range(176  233)) ///
	   legend(label(1 "Total Assets: All") label(2 "Total Assets: Public")  label(3 "# of All BDCs") label(4 "# of Public BDCs") size(medlarge))
graph export "$figures_path/figure1.eps", replace


